<!-- 侧边导航栏 -->
<div class="left-sidebar">
    <!-- 用户信息 -->
    <div class="tpl-sidebar-user-panel">
        <div class="tpl-user-panel-slide-toggleable">
            <div class="tpl-user-panel-profile-picture">
                <img src="/assets/img/webwxgetmsgimg.jpg" alt="">
            </div>
            <span class="user-panel-logged-in-text">
              <i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
              {$Think.session.Admin.user_name}
          </span>
            <a href="{:url('Common/setpassv')}" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
        </div>
    </div>

    <!-- 菜单 -->
    <ul class="sidebar-nav">
        <!--<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>-->



        {foreach name="menu" key="key" item="value"}

            <li class="sidebar-nav-link">
                <!--有子目录-->
                {notempty  name="value.menu"}
                <a href="javascript:;" class="sidebar-nav-sub-title active">
                    <i class="fa {$value.icon}"></i> {$value.name}

                    {if $Think.session.menus.menus==$value.menus}<!--箭头-->
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico sidebar-nav-sub-ico-rotate"></span>
                    {else/}
                        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico "></span>
                    {/if}
                </a>
                <ul class="sidebar-nav sidebar-nav-sub" style="display: {if $Think.session.menus.menus==$value.menus}block{else /}none{/if};"><!--是否打开目录-->
                    {foreach name="value.menu" key="k" item="v"}
                    <li class="sidebar-nav-link">
                        <a href="{:Url( $v['controller'] . '/' . $v['action'])}" {if  $Think.session.menus.controller==$v.controller&&$Think.session.menus.action==strtolower($v.action)}class="sub-active"{/if}><!--是否高亮-->
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> {$v.name}
                        </a>
                    </li>
                    {/foreach}
                </ul>
                {else /}
                    {if $value.follow_id!=0}
                    <!--没有子目录-->
                    <li class="sidebar-nav-link">
                        <a href="{:Url('value.controller/value.action')}" class="sub-active">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> {$value.name}
                        </a>
                    </li>
                    {/if}
                {/notempty}


            </li>
        {/foreach}


        <!--<li class="sidebar-nav-link">-->
            <!--<a href="sign-up.html">-->
                <!--<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册-->
                <!--<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>-->
            <!--</a>-->
        <!--</li>-->
        <!--<li class="sidebar-nav-link">-->
            <!--<a href="{:Url('Login/login')}">-->
                <!--<i class="am-icon-key sidebar-nav-link-logo"></i> 登录-->
            <!--</a>-->
        <!--</li>-->
        <!--<li class="sidebar-nav-link">-->
            <!--<a href="404.html">-->
                <!--<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误-->
            <!--</a>-->
        <!--</li>-->

    </ul>
</div>